package com.linjiahao.nettyGateway;

import com.linjiahao.commonUtil.Redis.RedisService;
import com.linjiahao.nettyGateway.loadBalancer.WebsocketLoadBalancerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.config.GatewayAutoConfiguration;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = GatewayAutoConfiguration.class)
@EnableDiscoveryClient
@ComponentScan("com.linjiahao")
public class ApiGatewayApplication {



    public static void main(String[] args) {
        SpringApplication.run(com.linjiahao.nettyGateway.ApiGatewayApplication.class, args);
    }

    @Bean
    public RedisService initRedisService(){
        return new RedisService();
    }
}
